import http from '../https'
const url = 'http://82.157.143.31:8080'
//初始化
const home = (obj) => http({
    url: `${url}/diagnosis/diagnosisInitializeFind`,
    method: 'get',
    params: {
        ...obj
    }
})
//删除
const del = (id) => http({
    url: `${url}/diagnosis/diagnosisDelete`,
    method: 'post',
    data: {
        id
    }
})
//修改
const mod = (obj) => http({
    url: `${url}/diagnosis/diagnosisUpdate`,
    method: 'post',
    data: { ...obj }
})
//导出
const Myexport = () => http({
    url: `${url}/diagnosis/diagnosisInformationExcelOutput`,
    method: 'get',
    responseType: 'blob'
})
//下拉框
const option = () => http({
    url: `${url}/diagnosis/diagnosisInitializeAddUpdate`,
    method: 'get',

})
export {
    home,
    Myexport,
    del,
    mod,
    option
}